<include file="Public:header" title="所有用户 - 用户管理" />
<h2>用户管理 </h2>
<span>当前共有用户 <{$count.users}> 个，管理员 <{$count.admin}> 个</span>
<div id="addTips" class="tip clearfix" style="margin:5px 0 0 0;">添加提示</div>
<form method="post" action="<{:U('addUser')}>" onSubmit="return post_form('<{:U('addUser')}>',this,'addTips');" style="height:40px;" autocomplete="off" >
<div class="fl">
<label for="addUsername">用户名</label><input id="addUsername" name="username" type="text" placeholder="用户名" style="width:150px;" class="text" />
<label for="addPassword">密码</label><input id="addPassword"  name="password" type="password" placeholder="密码" style="width:150px;" class="text" />
<label for="addEmail">邮箱</label><input id="addEmail"  name="email" type="email" placeholder="电子邮箱" class="text" />
<input type="submit" value="添加用户" class="btn" /></div>
</form>
<table>
  <thead>
    <tr>
      <td style="min-width: 3%;text-align:center;">UID</td>
	  <td style="width: 7%;text-align:center;">头像</td>
      <td>用户</td>
      <td>邮箱</td>
      <td>注册IP</td>
	  <td>注册时间</td>
	  <td>最后登录时间</td>
	  <td>最后改密时间</td>
	  <td style="text-align:center;">操作</td>
    </tr>
  </thead>
  <tbody class="userList">
  <volist name="userList" id="vo">
    <tr>
      <td style="text-align:center;"><{$vo.id}></td>
	  <td style="text-align:center;"><img src="<{$vo.info.avatar|parseAvatar=###,50}>" /></td>
      <td><{$vo.username}></td>
      <td><{$vo.email}></td>
      <td><{$vo.cip}></td>
	  <td><{$vo.ctime|date="Y-m-d H:i:s",###}></td>
	  <td><{$vo.log.0.time|date="Y-m-d H:i:s",###}></td>
	  <td><{$vo.cptime|date="Y-m-d H:i:s",###}></td>
	  <td style="text-align:center;"><a class="editUser" href="<{:U('edit?id='.$vo['id'])}>">编辑</a>&nbsp;&nbsp;<a class="delUser" href="javascript:delUser(<{$vo.id}>);">删除</a></td>
    </tr>
  </volist>
  </tbody>
</table>
<div class="pageSwitcher"><{$page}></div>
<include file="Public:footer" />